package one.stand.controller;

import io.swagger.annotations.ApiOperation;
import one.stand.aop.ApiController;
import one.stand.enums.LoginEnum;
import one.stand.model.ResultModel;
import one.stand.request.CreateShareRecordRequest;
import one.stand.request.NoticeRequest;
import one.stand.request.live.LiveRequest;
import one.stand.response.NoticeResponse;
import one.stand.response.live.LiveResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author luoyang
 * @date 2020/5/19 14:14
 */
@RequestMapping("userApi/live")
@RestController
public class LiveController extends BaseController{

    @ApiOperation(value = "小程序获取直播房间")
    @PostMapping("queryLiveList")
    @ApiController(isLogin = true, paramClass = LiveRequest.class)
    public ResultModel<LiveResponse> queryLiveList(@RequestAttribute LiveRequest request){
        return userFegin.queryLiveList(request );
    }
}
